package com.example.demo.service;

import com.example.demo.entity.user;
import com.example.demo.mapper.usermapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userservice implements userserviceInterface {
    @Autowired
    usermapper userdao;

    public user login(user u) {
        return userdao.login(u);
    }
    public int signup(user u) {
        return userdao.signup(u);
    }
    public user checkusername(user u) { return userdao.checkusername(u);}
    public  user checkuser(user u) { return userdao.checkuser(u);}
    public int resetpass(user u) { return userdao.resetpass(u);}
    public int updata(user u) {return userdao.updata(u);}
}
